572d328762bee9100549963a6826fdb9f633af2a,src/java/org/apache/cassandra/cql3/statements/UpdateStatement.java,UpdateStatement,addUpdateForKey,#ColumnFamily#ByteBuffer#Composite#UpdateParameters#,52

Before Change


        if (cfm.comparator.isDense())
        {
            if (prefix.isEmpty())
                throw new InvalidRequestException(String.format("Missing PRIMARY KEY part %s", cfm.clusteringColumns().iterator().next()));

            // An empty name for the compact value is what we use to recognize the case where there is not column
            // outside the PK, see CreateStatement.

After Change


        if (cfm.comparator.isDense())
        {
            if (prefix.isEmpty())
                throw new InvalidRequestException(String.format("Missing PRIMARY KEY part %s", cfm.clusteringColumns().get(0)));

            // An empty name for the compact value is what we use to recognize the case where there is not column
            // outside the PK, see CreateStatement.